A message is considered fair game if the subject line has the word rcvfile as the first word of the Subject: field. The directory argument is required. The destination file name is created by concatenation of the directory, a "/", and the filename given in the subject field after The filename from the subject field is not allowed to contain any ".." directory components. If any are found, rcvfile aborts.
The -l option sets the logfile where a record of rcvfile activity is made. The file must already exist and be writable to the recipient. The -m option enables the creation of missing directories in the pathname of a file to be created. They will be mode 0755.
The owner of the created file will be notified by mail of the fact that a file has been delivered, with information about who sent it and other interesting bits. The owner may not be the recipient if the referenced file existed, was owned by another user, and was writable. If the file delivery fails for any reason, the message will be delivered as normal mail.
subject rcvfile pipe A rcvfile
or
Addr user=file pipe A rcvfile
You may need to give the full pathname of rcvfile if it is not in the search path of a vanilla /bin/sh.